package com.ruleengine.instruction.impl;

import com.ruleengine.instruction.InstructionType;

public class AggregationInstruction extends BaseInstruction {
    private String target;
    private int factor;
    private String caseId;
    
    public AggregationInstruction() {
        super(InstructionType.AGGREGATION);
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public int getFactor() {
        return factor;
    }

    public void setFactor(int factor) {
        this.factor = factor;
    }

    public String getCaseId() {
        return caseId;
    }

    public void setCaseId(String caseId) {
        this.caseId = caseId;
    }

    @Override
    public String toString() {
        return "{" + super.toString() + "," + caseId +"," + target + "}";
    }
    
}
